package com.emep.changzhi.analyse.repository.datamonitor.hour;

import com.emep.changzhi.analyse.entity.datamonitor.hour.DataHourUnorganizedIndustry;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.cassandra.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;


/**
 * @author yangj
 * @version V1.0
 * @Description: 工业无组织排放_小时数据表
 * @date 2018/2/27  14:47
 */
public interface DataHourUnorganizedRepository extends CrudRepository<DataHourUnorganizedIndustry, String> {


    @Query("select * from data_hour_unorganized_industry limit :pageSize")
    List<DataHourUnorganizedIndustry> dataHourUnorganizedHome(@Param("pageSize") Integer pageSize);
    @Query("select * from data_hour_unorganized_industry where token(id)>token(:id) limit :pageSize")
    List<DataHourUnorganizedIndustry> dataHourUnorganizedFlip(@Param("id")String id,@Param("pageSize") Integer pageSize);

}
